﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Licht : IAktor
    {
        private int _Status;
        private string _ID;

        public int Status
        {
            get { return _Status; }
            set 
            { 
                if (value < 0 || value > 100)
                {
                    Console.WriteLine("Fehler: Licht - Status kann nicht " + value.ToString() + " sein.");
                }
                else
                {
                    _Status = value; 
                }                
            }
        }

        public Licht(string ID)
        {
            _Status = Program.RandomNumber(0,1);
            _ID = ID;
        }

        public string ID
        {
            get { return _ID; }
        }
    }
}
